diff options
| author | Kit La Touche <kit@transneptune.net> | 2026-02-16 22:44:06 -0500 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2026-02-16 22:44:06 -0500 |
| commit | d82e6849992a22bb6a4f41c3144ffa0cd249b2a2 (patch) | |
| tree | e8112ef84edaa84f2e614d8582dc5ef261b020c2 /ui/routes/(app)/c/[conversation]/+page.svelte | |
| parent | eae9c15a7cd76d886337b8034d9802ac9d9d7c2d (diff) | |
Track unread conversation count in service workernotifs-behaviour
Diffstat (limited to 'ui/routes/(app)/c/[conversation]/+page.svelte')
| -rw-r--r-- | ui/routes/(app)/c/[conversation]/+page.svelte | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/routes/(app)/c/[conversation]/+page.svelte b/ui/routes/(app)/c/[conversation]/+page.svelte index 5a832ee..a487e85 100644 --- a/ui/routes/(app)/c/[conversation]/+page.svelte +++ b/ui/routes/(app)/c/[conversation]/+page.svelte @@ -61,7 +61,9 @@ registration.active.postMessage({ type: 'CONVERSATION_READ', conversationId, - at, + // The service worker's idea of "has been read yet" is more + // constrained, so we just tell it "we read it now, at this moment". + at: new Date(), }); }); } |
